package com.javandad.app.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.javandad.app.shared.entity.User;
import com.javandad.app.shared.entity.UserGroup;

public interface NetworkServiceAsync {

	void getFriends(String username, AsyncCallback<List<User>> callback);

	void getGroups(String username, AsyncCallback<List<UserGroup>> callback);

	void getMembers(String groupURL, AsyncCallback<List<User>> callback);

	void isMember(String username, String groupURL, AsyncCallback<Boolean> callback);

	void addMember(String username, String groupURL, AsyncCallback<Boolean> callback);

	void removeMember(String username, String groupURL, AsyncCallback<Boolean> callback);

	void createOrJoinGroup(String username, String groupURL, AsyncCallback<Boolean> callback);

}
